import {request , requestGet} from './index'
// 通用api
export default {
     // 获取下载地址 
     async inviteStore<T=any ,B = any> (item: B): Promise<T> {
        return  requestGet(`/api/v1/social/invite/store`,item)
    },
    // 邀请页信息获取
    async invite<T=any ,B = any> (item: B): Promise<T> {
        return  requestGet(`/api/v1/social/invite`,item)
    },
    // 拜师页面查看接口
    async inviteBind<T=any ,B = any> (item: B): Promise<T> {
        return  requestGet(`/api/v1/social/invite/bind`,item)
    },
    // 拜师页面提交接口
    async inviteBindSubmit<T=any ,B = any> (item: B): Promise<T> {
        return  request(`/api/v1/social/invite/bind`,item)
    },
    // 拜师页面获取徒弟列表
    async inviteMentees<T=any ,B = any> (item: B): Promise<T> {
        return  requestGet(`/api/v1/social/invite/mentees`,item)
    },
    // 兑付首页查看
    async getGameBalance<T=any ,B = any> (item: B): Promise<T> {
        return requestGet(`/api/v1/funds/game/balance`, item)
    },
    // 可兑付商品列表
    async gameExchange<T=any ,B = any> (item: B): Promise<T> {
        return requestGet(`/api/v1/funds/game/exchange`, item)
    },
    // 兑付记录
    async gameExchangeRecords<T=any ,B = any> (item: B): Promise<T> {
        return requestGet(`/api/v1/funds/game/exchange/records`, item)
    },
    // 兑付
    async gamePayout<T=any ,B = any> (item: B): Promise<T> {
        return requestGet(`/api/v1/funds/game/payout`, item)
    },
    // 兑付申请
    async gamePayoutApply<T=any ,B = any> (item: B): Promise<T> {
        return request(`/api/v1/funds/game/payout/apply`, item)
    },
     // 首页下载
     async home<T=any ,B = any> (item: B): Promise<T> {
        return requestGet(`/home?app_name=yoomatch`, item)
    }
}
